const dic = {
  materialCategory: [
    { label: 'xx', value: '1' },
    { label: 'xx2', value: '2' },
    { label: 'xxx3', value: '3' },
    { label: 'xxx4', value: '4' }
  ],
  status_type: [
    { label: '草稿', value: '0' },
    { label: '审批中', value: '1' },
    { label: '审批通过', value: '2' },
    { label: '驳回', value: '3' },
    { label: '作废', value: '-1' }
  ],
  inspectResult: [
    { label: '通过', value: '0' },
    { label: '不通过', value: '1' }
  ]
}

export const option = {
  border: true,
  stripe: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  printBtn: false,
  simplePage: true,
  searchBtnText: '搜索',
  emptyBtnText: '清空',
  dialogType: 'drawer',
  align: 'center',
  searchMenuSpan: 6, //搜索按钮是否单独成行
  index: true,
  indexLabel: '序号',
  column: [
    {
      label: '样品编号',
      prop: 'sampleCode'
    },
    {
      label: '样品名称',
      prop: 'sampleName',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '供应商名称',
      prop: 'supplierName',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '物料分类',
      prop: 'materialCategory',
      type: 'select',
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: dic.materialCategory,
      // searchslot:true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '样品单位',
      prop: 'sampleUnit'
    },
    {
      label: '样品规格',
      prop: 'sampleSpecs'
    },
    {
      label: '样品数量',
      prop: 'sampleNum'
    },
    {
      label: '检查结果',
      prop: 'inspectResult',
      type: 'select',
      dicData: dic.inspectResult,
      props: {
        label: 'label',
        value: 'value'
      },
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '创建人',
      prop: 'creater',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd'
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      dicUrl: '/api/blade-system/dict-biz/dictionary?code=supplier_recommend_status',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      slot: true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6 // 搜索栏 布局
    }
  ]
}

export const page = {
  currentPage: 1,
  total: 40,
  layout: 'total, sizes, prev, pager, next, jumper',
  pageSizes: [10, 20, 50, 100],
  pageSize: 10
}
